<template>
  <div class="wp">
      <div class="back-det">
          <img src="@/assets/2_25.png" class="pic-det" @click="back">
      </div>
      <div class="back-two"></div>
      <div class="row-a1-det">
          <div class="l-det">
          <img src="@/assets/2_19.png" class="pic-det-2">
          </div>
          <div class="r-det">
              <h3 class="tit-det">三体：死神永生</h3>
              <h4 class="name-det">作者：刘慈心</h4>
              <h5 class="txt-det">刘慈欣创作的系列长篇科幻小说地球往事三部曲的第三部作品...</h5>
              <van-rate v-model="value" color="#fb6894" void-color="#fb6894" :size="17" allow-half/>
              <span class="fenshu-det">{{parseFloat(value).toFixed(1)}}</span>
          </div>
      </div>
      <van-popup :show="true">内容</van-popup>
      <div class="row-a2-det">
        <i slot="icon" class="iconfont icon-shoucang" :class="{changColor}"  @click="changColor =! changColor"></i>
        <span class="sp-det">收藏</span>
        <i slot="icon" class="iconfont icon-fenxiang" @click="showBotbak"></i>
        <span class="sp-det">分享</span>
        <i slot="icon" class="iconfont icon-jiarushujia" @click="showPopup"></i>
        <span class="sp-det">放入书架</span>
        <van-popup v-model="show">
          <img src="@/assets/2_19.png" class="pic-det-4">
          <h5 class="pop-txt">
            已经将这本书加入到个人书架
          </h5>
          <h5 class="btn-back" @click="showBack">好的</h5>
        </van-popup>
      </div>
      <div class="row-a3-det">
        <h3 class="h3-det">详情</h3>
        <h5 class="p-det">
          与三体文明的战争使人类第一次看到了宇宙黑暗的真相，地球文明像一个恐惧的孩子，熄灭了寻友的篝火，在暗夜中发抖。自以为历经沧桑，其实刚刚蹒跚学步；自以为悟出了生存竞争的秘密，其实还远没有竞争的资格。
        </h5>
      </div>
      <div class="row-a4-det">
        <h3 class="h3-det">查看目录</h3>
        <img src="@/assets/2_jt.png" class="pic-det-3">
      </div>
      <div class="row-a5-det" @click="pinglun">
        <h3 class="h3-det">评论</h3>
        <span class="sp-det-2">251条评论</span>
        <i slot="icon" class="iconfont icon-pinglun"></i>
        <div class="info-det">
          <img src="@/assets/4_1.png" class="info-pic">
          <h5 class="info-tit">
            你个废物
          </h5>
          <h5 class="info-txt">
            大刘塑造的女性都具有明显的圣母特质，但是本质上弱爆了。叶是文革的毒瘤，庄是定制禁脔，程最经典——站在圣母和傻逼的微笑曲线上。大刘塑造的男性都带有明显的缺陷但本质上极端人性化。一身痞气的小人物大史，最高情商让他活得最明白；罗辑的荒唐和不羁让他成了救世主，但也决定了他必不能善终；软弱怯懦固执的云天明，也并无理由因为慷慨和运气就得到爱啊。但我真心理解这样的人，这样的性格，这样的命运。
          </h5>
          <h5 class="info-time">
            <span class="info-t-sp">12-04 21:20</span>
            <i slot="icon" class="iconfont icon-pinglunxihuan"></i>
            <span class="info-t-sp2">134</span>
            <i slot="icon" class="iconfont icon-pinglunfabiao"></i>
            <span class="info-t-sp2">98</span>
          </h5>
        </div>
      </div>
      <div class="footer-det">
        <p class="btn1-det" @click="btn">试看</p>
        <p class="btn2-det">购买</p>
      </div>
      <div class="fdet2"></div>
      <van-popup v-model="showBottom" position="bottom" :style="{ height: '18%' }" closeable close-icon="close">
        <ul class="ul_det">
          <li>
          <img src="@/assets/5_1.png" class="showBt_pic1">
          </li>
          <li>
          <img src="@/assets/5_2.png" class="showBt_pic2">
          </li>
          <li>
          <img src="@/assets/5_3.png" class="showBt_pic3">
          </li>
          <li>
          <img src="@/assets/5_4.png" class="showBt_pic4">
          </li>
        </ul>
      </van-popup>
  </div>
</template>

<script>
export default {
  // 定义属性
   data () {
      return{
        value : 5,
        changColor:true,
        show: false,
        showBottom:false
    }
  },
  // 计算属性，会监听依赖属性值随之变化
  computed: {
  },
  // 监控data中的数据变化
  watch: {},
  // 方法集合
  methods: {
     back(){
        this.$router.go(-1);//返回上一层
    },
    showPopup() {
      this.show = true
    },
    showBack() {
      this.show = false
    },
    showBotbak() {
      this.showBottom = true
    },
    pinglun() {
      this.$router.push('/comment')
    },
    btn () {
      this.$router.push('/article')
    },
  },
  // 生命周期 - 创建完成（可以访问当前this实例）
  created() {
   
  },
  // 生命周期 - 挂载完成（可以访问DOM元素）
  mounted() {
    
  }
}
</script>

<style lang='less'>
  .back-det{
      width: 100%;
      margin-left: 48px;
      position: fixed;
      top: 0px;
      left: 0px;
      z-index: 999;
      background-color: #21272e;
     .pic-det{
      width: 34px;
      padding-top: 114px;
      padding-bottom: 65px;
      }
  }
  .back-two{
    height: 244px;
  }
  .row-a1-det{
      overflow: hidden;
      margin-left: 50px;
      border-bottom:solid 1px #45485b;
      padding-bottom: 60px;
      .l-det{
       float: left;
      }
        .r-det{
       float: left;
      }
      .pic-det-2{
          width: 216px;
          padding-right: 30px;
      }
      .tit-det{
          	font-size: 48px;
	font-weight: normal;
	font-stretch: normal;
	letter-spacing: 0px;
	color: #ffffff;
    margin-top: 30px;
      }
      .name-det{
          	font-size: 30px;
	font-weight: normal;
	font-stretch: normal;
	letter-spacing: 0px;
	color: #828d9a;
    padding: 15px 0;
      }
      .txt-det{
          width: 388px;
          	font-size: 26px;
	font-weight: normal;
	font-stretch: normal;
	line-height: 36px;
	letter-spacing: 0px;
	color: #868dab;
      }
      .fenshu-det{
          padding-left: 10px;
          font-size: 40px;
	font-weight: normal;
	font-stretch: normal;
	letter-spacing: 0px;
	color: #ffce44;
      }
  }
  .row-a2-det{
    padding-top: 10px;
    overflow: hidden;
    margin-left: 50px;
    border-bottom:solid 1px #45485b;
    padding-bottom: 30px;
    .icon-shoucang{
      font-size: 35px;
    }
    .icon-fenxiang{
      font-size: 35px;
      color: #71768c;
      padding-left: 90px;
    }
    .icon-jiarushujia{
      font-size: 35px;
      color: #71768c;   
      padding-left: 116px;
    }
    .sp-det{
     font-size: 30px;
	   font-weight: normal;
	   font-stretch: normal;
	   letter-spacing: 0px;
	   color: #ffffff;
     padding-left: 22px;
    }
  }
  .row-a3-det{
    margin-left: 50px;
    padding-bottom:60px;
    border-bottom:solid 1px #45485b;
    .h3-det{
      padding: 30px 0px;
     font-size: 36px;
	   font-weight: normal;
	   font-stretch: normal;
	   letter-spacing: 0px;
	   color: #ffffff;
    }
    .p-det{
    width: 642px;
    font-size: 28px;
	  font-weight: normal;
	  font-stretch: normal;
	  line-height: 40px;
	  letter-spacing: 0px;
	  color: #868dab;
    }
  }
  .row-a4-det{
        padding-top: 10px;
    overflow: hidden;
    margin-left: 50px;
    border-bottom:solid 1px #45485b;
    padding-bottom: 20px;
    .pic-det-3{
      float: right;
      padding-top:45px;
      padding-right: 60px;
      width: 16px;
    }
        .h3-det{
          float: left;
      padding: 30px 0px;
     font-size: 36px;
	   font-weight: normal;
	   font-stretch: normal;
	   letter-spacing: 0px;
	   color: #ffffff;
    }
  }
  .row-a5-det{
       padding-top: 10px;
    overflow: hidden;
    margin-left: 50px;
    padding-bottom: 20px;
      .h3-det{
          float: left;
      padding: 30px 0px;
     font-size: 36px;
	   font-weight: normal;
	   font-stretch: normal;
	   letter-spacing: 0px;
	   color: #ffffff;
    }
    .sp-det-2{
      float: left;
      padding-top: 42px;
      padding-left: 30px;
      	font-size: 22px;
	font-weight: normal;
	font-stretch: normal;
	letter-spacing: 0px;
	color: #007aff;
    }
    .icon-pinglun{
      float: right;
      margin-top: 40px;
      padding-right: 50px;
      font-size: 34px;
      color: #ffffff;
    }
    .info-det{
      width: 100%;
      padding-top: 30px;
      float: right;
      .info-pic{
        width: 60px;
        float: left;
      }
      .info-tit{
        float: left;
        padding-left: 23px;
        padding-top: 10px;
        font-size: 28px;
	      font-weight: normal;
	      font-stretch: normal;
      	letter-spacing: 0px;
       	color: #ffffff;
      }
      .info-txt{
        padding-top: 20px;
        float: right;
        padding-right: 60px;
        width: 553px;
        font-size: 24px;
   	    font-weight: normal;
	      font-stretch: normal;
	      line-height: 36px;
	      letter-spacing: 0px;
	      color: #868dab;
      }
      .info-time{
        float: right;
        width: 88%;
        border-bottom:solid 1px #45485b;
        padding-bottom: 30px;
      }
      .info-t-sp{        	
       font-size: 22px;
 	     font-weight: normal;
	     font-stretch: normal;
	     letter-spacing: 0px;
	     color: #656a7b;
        }
      .icon-pinglunxihuan{
        width: 20px;
        color: #71768c;
        padding-left: 275px;
      }
      .info-t-sp2{
        padding-left: 10px;
        font-size: 22px;
	      font-weight: normal;
	      font-stretch: normal;
	      letter-spacing: 0px;
	      color: #656a7b;
      }
      .icon-pinglunfabiao{
        padding-left: 30px;
        width: 20px;
        color: #71768c;
      }
    }
  }
  .footer-det{
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 158px;
    background-color: #373a49;
    .btn1-det{
      float: left;
      width: 216px;
	    height: 94px;
      margin-left: 48px;
      margin-top: 32px;
    	background-color: #9295a9;
	    border-radius: 47px;
      font-size: 28px;
     	font-weight: normal;
	    font-stretch: normal;
     	letter-spacing: 0px;
	    color: #ffffff;
      text-align: center;
      line-height: 94px;
    }
    .btn2-det{
      float: left;
      width: 406px;
	    height: 94px;
      margin-left:32px;
      margin-top: 32px;
	    background-color: #fb6894;
	    border-radius: 47px;
      font-size: 28px;
	    font-weight: normal;
	    font-stretch: normal;
   	  letter-spacing: 0px;
	    color: #ffffff;
      text-align: center;
      line-height: 94px;
    }
  }
  .fdet2{
    height: 158px;
    width: 100%;
  }
  .van-rate__item:not(:last-child){
      padding-right: 0px;
  }
  .changColor{
      color: #ee392f;  
  }
  .van-popup--center{
  width: 550px;
	height: 766px;
	background-color: #373a48;
	border-radius: 50px;
  }
  .pic-det-4{
    width: 216px;
    position: absolute;
    top: 80px;
    left: 168px;
  }
  .pop-txt{
    position: absolute;
    top: 455px;
    left: 98px;
    text-align: center;
    width: 360px;
    font-size: 40px;
   	font-weight: normal;
	  font-stretch: normal;
   	letter-spacing: 0px;
	  color: #ffffff;
  }
  .btn-back{
  position: absolute;
  bottom: 64px;
  left: 64px;
  text-align: center;
  width: 422px;
	height: 94px;
  line-height: 94px;
	background-color: #fb6894;
	border-radius: 47px;
  font-size: 30px;
	font-weight: normal;
	font-stretch: normal;
	letter-spacing: 0px;
	color: #ffffff;
  }
  .van-popup--bottom{
    background-color: #2d353f;
  }
  .ul_det{
    overflow: hidden;
    text-align: center;
    li{
      float: left;
      margin-left: 85px;
      width: 80px;
      height: 80px;
      line-height: 80px;
      border-radius: 50%;
      background-color: #fff;
      margin-top: 130px;
      flex: 1;
      .showBt_pic1{
        width: 40px;
      }
      .showBt_pic2{
        width: 51px;
      }
      .showBt_pic3{
        width: 53px;
      }
      .showBt_pic4{
        width: 46px;
      }
    }
  }
</style>